﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CJJCH.Web.Controls
{
    public partial class ManageTop : System.Web.UI.UserControl
    {
        private int _iIndex;
        public int IIndex
        {
            get { return _iIndex; }
            set { _iIndex = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitMenu();
            }

        }

        private void InitMenu()
        {
            switch (IIndex)
            {
                case 1:
                    Li1.Attributes.Add("class", "selectTag");
                    break;
                case 2:
                    Li2.Attributes.Add("class", "selectTag");
                    break;
                default:
                    break;
            }
        }
    }
}